﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace TagCss.Helpers
{
    /// <summary>
    /// 这个类是专门用来输出文档的
    /// </summary>
    public static class TagCssHtmlHelper
    {
        public static MvcHtmlString Title(string innerText,string id)
        {
            TagBuilder tb = new TagBuilder("h1");
            tb.GenerateId(id);
            tb.SetInnerText(innerText);
            return new MvcHtmlString(tb.ToString());
        }


        public static MvcHtmlString SubTitle(string innerText,string id)
        {
            TagBuilder tb = new TagBuilder("h2");
            tb.GenerateId(id);
            tb.SetInnerText(innerText);
            return new MvcHtmlString(tb.ToString());
        }





    }


}